package cn.sxt.yxl.question.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.question.pojo.AColumns;
import cn.sxt.yxl.question.pojo.AItems;

/*问题相关的Service*/
public interface IQuestionService
{
	/* ---- 栏目模块 ---- */
	/*查询一条栏目*/
	AColumns findOneColumnsService(Map<String, Object> condMap);
	
	/*保存一条栏目 */
	JSONObject saveOneColumnsService(AColumns columns);
	
	/*更新一条栏目*/
	JSONObject updateOneColumnsService(AColumns columns);
	
	/*删除一条栏目*/
	JSONObject deleteOneColumnsService(AColumns columns);
	
	/*查询多条栏目*/
	List<AColumns> findCondListColumnsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	
	/*----- 测试项操作 -----*/
	/*添加一条测试项*/
	JSONObject saveOneItemsService(AItems items);
	
	/*更新一条测试项*/
	JSONObject updateOneItemsService(AItems items);
	
	/*删除一条测试项*/
	JSONObject deleteOneItemsService(AItems items);

	/*查询单条测试项*/
	AItems findOneItemsService(Map<String, Object> condMap);
	
	/*查询多条记录,带分页*/
	List<AItems> findItemsCondListService(PageInfoUtil pageInfoUtil , Map<String, Object> condMap);
	
}
